<%-- 
    Document   : penyata_kad
    Created on : Jun 18, 2014, 3:31:36 PM
    Author     : hasnor
--%>

<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<%@page contentType="text/html" pageEncoding="windows-1252"%>
<%@ include file="/WEB-INF/jsp/include/page_header.jspf" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
        <title>Penyata Kad</title>
        
        <script type="text/javascript">
            $(document).ready(function(){
                $('form').submit( function () {
                    return formValidation();
                }); 
            });
             function popup(){
                var url = '${pageContext.request.contextPath}/deposit?genReportsPenyataKad';
                window.open(url);
            }
        </script>
    </head>
    <body>
         <s:form beanclass="th.stripes.action.DepositActionBean" class="niceform">
            <div id="content">
                <div id="logo">
                    <span>
                        <img src="${pageContext.request.contextPath}/images/img/ribbon.png"/>               
                    </span>
                </div>
                <h3>
                    Penyata <i>TH</i> DEBIT-<i>i</i> MASTERCARD
                </h3>
                <p>
                    <label>Nama :</label> ${actionBean.deposit.nama}
                </p>
                <%--<p>
                    <label>Tarikh :</label> <fmt:formatDate value="${actionBean.deposit.tarikhTransaksi}" pattern="dd/MM/yyyy"/>
                </p>--%>
                <p>
                    <label>No. Akaun TH :</label> ${actionBean.deposit.noAkaun}
                </p>
                <p>
                    <label>No. KP Semasa :</label> ${actionBean.deposit.noKp}
                </p>
                <p>
                    <label>No. Kad :</label> ${actionBean.deposit.noKad}
                </p>
                <p  style="height: 15px;">
                    <label>Alamat :</label>${actionBean.deposit.alamat1}        
                </p>
                <p style="height: 15px;">
                    <label>&nbsp; </label>${actionBean.deposit.alamat2}         
                </p>
                <p style="height: 15px;">
                    <label>&nbsp; </label>${actionBean.deposit.alamat3}         
                </p>
                <p style="height: 15px;">
                    <label>&nbsp; </label>${actionBean.deposit.poskod}
                </p>
                <p style="height: 15px;">
                    <label>&nbsp; </label>${actionBean.deposit.negeriDesc}
                </p>
                <p>
                    <label>Penyata untuk bulan :</label> ${actionBean.deposit.bulanPilihan}
                </p>
                <br>                                   
                <p>
                    <div style='overflow-x:auto;overflow-y:auto;width:100%'> 
                        <display:table name="${actionBean.deposit.senaraiTransaksiKad}" class="tablecloth" id="row" style="width:100%">
                           <%-- <display:column title="Bil" class="fColor">${row_rowNum}</display:column> --%>
                            <display:column title="Tarikh Transaksi">                            
                                <fmt:formatDate value="${row.tarikhTransaksi}" pattern="dd/MM/yyyy"/>
                            </display:column>
                            <display:column title="Tarikh Terima">                            
                               <fmt:formatDate value="${row.tarikhTerima}" pattern="dd/MM/yyyy"/>
                            </display:column>
                            <display:column property="butiran" title="Butiran"/>
                            <%--<display:column style="width:25px"></display:column>--%>
                            <display:column title="Amaun Debit (RM)" style="width:110px;text-align:right;"><fmt:formatNumber value="${row.amaunDebit}" pattern="#,##0.00"/></display:column>
                            <%--<display:column title="Amaun Debit (RM)" style="width:110px;text-align:right;"><fmt:formatNumber value="${row.baki}" pattern="#,##0.00"/></display:column>--%>
                            <%--<display:column style="width:25px"></display:column>--%>
                            <display:column title="Amaun Kredit (RM)" style="width:110px;text-align:right;"><fmt:formatNumber value="${row.amaunKredit}" pattern="#,##0.00"/></display:column>
                            <%--<display:column title="Amaun Kredit (RM)" style="width:110px;text-align:right;"><fmt:formatNumber value="${row.baki}" pattern="#,##0.00"/></display:column>--%>
                            <%--<display:column style="width:25px"></display:column>--%>
                            <%--<display:column title="Baki (RM)" style="width:120px;text-align:right;"><fmt:formatNumber value="${row.baki}" pattern="#,##0.00"/></display:column>--%>
                        </display:table>
                    </div>
                </p>
                <p align="center">
                    <%--<s:button name="mainPage" value="HALAMAN UTAMA"/>--%>
                    <s:button name="print" value="Cetak" onclick="popup()" class="button green"/>
                </p>
            </div>
        </s:form>
    </body>
</html>
